﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="HienthiBL.aspx.cs" Inherits="HienthiBL" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width: 100%; height: 124px;">
        <tr>
            <td>
                <div style="text-align: center">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="STT" DataSourceID="SqlDataSource1" Height="222px" 
                    Width="585px" AllowPaging="True" AllowSorting="True" 
                        onselectedindexchanged="GridView1_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="STT" HeaderText="STT" InsertVisible="False" 
                            ReadOnly="True" SortExpression="STT" />
                        <asp:BoundField DataField="NgayDang" HeaderText="Ngày đăng" 
                            SortExpression="NgayDang" />
                        <asp:BoundField DataField="NoiDung" HeaderText="Nội dung" 
                            SortExpression="NoiDung" />
                        <asp:BoundField DataField="TieuDe" HeaderText="Tiêu đề" 
                            SortExpression="TieuDe" />
                        <asp:BoundField DataField="HoTen" HeaderText="Họ tên" SortExpression="HoTen" />
                    </Columns>
                </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT [NgayDang], [NoiDung], [TieuDe], [HoTen], [STT] FROM [BinhLuan]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</asp:Content>

